package cc.flyflow.biz.process.entity;

import cc.flyflow.common.constants.ValidGroup;
import cc.flyflow.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


/**
 * 流程主表
 *
 * @author Jyl
 */
@Getter
@Setter
@Accessors(chain = true)
public class ProcessMain extends BaseEntity
{
    /**
     * 表单名称
     */
    @NotBlank(groups = {ValidGroup.Crud.Create.class}, message = "表单名称不能为空")
    @TableField("`name`")
    private String name;
    /**
     * 图标配置
     */
    @NotBlank(groups = {ValidGroup.Crud.Create.class}, message = "表单头像不能为空")
    @TableField("`logo`")
    private String logo;
    /**
     * 分组ID
     */
    @TableField("`group_id`")
    private Long groupId;
    /**
     * 排序
     */
    @TableField("`sort`")
    private Integer sort;
    /**
     * 范围描述显示
     */
    @TableField("`range_show`")
    private String rangeShow;
    /**
     * 唯一性id
     */
    @TableField("`unique_id`")
    private String uniqueId;
}
